<?php


namespace app\index\controller;

use think\facade\Request;
use think\Controller;
class Demo3 extends Controller
{
    public function test()
    {
        dump(Request::get());
        dump($this->request->get());
    }

    public function index(\think\Request $r){
      return  json_encode($r->request());

    }
}